package com.paw.arg.resolver.resolver;

import org.springframework.stereotype.Component;

/**
 * @author lvzihai
 * @date 2021/6/25
 **/
@Component
public class BusTrafficResolver implements TrafficResolver{

  @Override
  public boolean support (String type) {
    return "BUS".equalsIgnoreCase(type);
  }

  @Override
  public Object resolver (Object argument) {
    // doSth
    return "bus resolver "+argument;
  }
}
